#ifndef MYITEM_H
#define MYITEM_H

#include <QGraphicsItem>

class MyItem : public QGraphicsObject
{
public:
    MyItem(QGraphicsItem *parent = 0);
public:
    virtual void setPixmapLocation(QString l);
    QString getPixmapLocation() { return pixmapLocation; }

    QRectF boundingRect() const;
    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);

protected:
    int width;
    int height;
    QPixmap *backgroundPixmap;
    QString pixmapLocation;
};

#endif // MYITEM_H
